/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const theRouter = {
  path: '/config',
  component: Layout,
  redirect: '/config/videoConfig',
  name: 'config',
  meta: {
    title: '配置管理',
    icon: 'money'
  },
  children: [
    {
      path: 'dataConfig',
      component: () => import('@/views/config/dataConfig'),
      name: 'dataConfig',
      meta: { title: '数据配置' }
    },
    // {
    //   path: 'list',
    //   component: () => import('@/views/config/list'),
    //   name: 'universalConfig',
    //   meta: { title: '页面配置' }
    // },
    {
      path: 'list/blocks/:id(\\d+)',
      component: () => import('@/views/config/pageConfig/blocks'),
      name: 'universalBlocks',
      meta: { noCache: true,title: '区块管理', activeMenu: '/config/list' },
      hidden: true
    },
    {
      path: 'list/items/:id(\\d+)',
      component: () => import('@/views/config/pageConfig/items'),
      name: 'universalBlockItems',
      meta: {  noCache: true,title: '区块内容管理', activeMenu: '/config/list' },
      hidden: true
    },
    // {
    //   path: 'list/otherItems/:id(\\d+)',
    //   component: () => import('@/views/config/pageConfig/otherItems'),
    //   name: 'universalOtherItems',
    //   meta: { title: '区块内容管理', activeMenu: '/config/list' },
    //   hidden: true
    // }
  ]
}
export default theRouter
